angular.module('faApp').service('supplierService', [ 'ajaxService',function (ajaxService) {
  this.supplierList = function (cfg) {
    return ajaxService.post(ajaxService.getApiUri("SUPPLIER_LIST"),cfg || {});
  };
  this.supplierFlowList = function (cfg) {
    return ajaxService.jsonp(ajaxService.getApiUri("SUPPLIER_FLOW_LIST"),cfg || {});
  };
  this.supplierDetail = function (cfg) {
    return ajaxService.jsonp(ajaxService.getApiUri("SUPPLIER_DETAIL"),cfg || {});
  };
  this.supplierAdd = function (cfg) {
    return ajaxService.jsonp(ajaxService.getApiUri("SUPPLIER_ADD"),cfg || {});
  };
  this.supplierEdit = function (cfg) {
    return ajaxService.jsonp(ajaxService.getApiUri("SUPPLIER_EDIT"),cfg || {});
  };
}]);